cd /D %~dp0
arm-atollic-eabi-objcopy.exe -O binary ..\GR900_Module2_App\yt_gr900_Module2_App_0x800c000.elf ..\GR900_Module2_App\yt_gr900_Module2_App_0x800c000.bin

del ..\bin\app\yt_gr900_Module2*.bin
bin_tool.exe -i ..\GR900_Module2_App\yt_gr900_Module2_App_0x800c000.bin -p ..\bin\app
bin_tool.exe -m ..\GR900_BOOT\yt_gr900_boot.bin 0xc000 -i ..\GR900_Module2_App\yt_gr900_Module2_App_0x800c000.bin -p ..\bin\app -f ..\bin\boot_app\yt_gr900_Module2_Boot_App
exit